package com.fire.mokito.service.impl;

import com.fire.mokito.dao.UserDO;
import com.fire.mokito.mapper.UserMapper;
import com.fire.mokito.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * UserServiceImpl
 *
 * @author zwd
 * @date 2022/5/15
 * @desc
 */
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public List<UserDO> queryUsersByName(String name) {
        return userMapper.queryUsers(name);
    }
}
